package org.sixtythousand.joker;

import org.sixtythousand.joker.handler.HandlerManager;

/**
 * 服务的抽象
 * @author zhoulk
 * @date 2023/10/11 10:05
 * @desc
 */
public abstract class Server {

    protected HandlerManager handlerManager;
    protected Connector connector;


    public Server handlerManager(HandlerManager handlerManager) {
        this.handlerManager = handlerManager;
        return this;
    }

    public Server connector(Connector connector) {
        this.connector = connector;
        return this;
    }

    public void start() {
        connector.start();
    }

    ;
}
